<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>上传</title>
</head>
<body>
<form th:action="@{/upload/file}" enctype="multipart/form-data" th:object="${carousel}" method="post">
    <label for="name">
        名称:
        <input type="text"  th:field="*{name}">
    </label>
    </br>


    <label for="name">
        文件:
        <input type="file" name="file">
    </label>
    </br>

    <label for="name">
        类型:
        <input type="text"  th:field="*{number}">
    </label>

    </br>
    <label for="ownuser">
        图片所有者:
        <input type="text"  th:field="*{ownuser}">
    </label>

    </br>
    <input type="submit" value="提交">
</form>
<form th:action="@{/upload/deleteAll}" method="post">
    <input type="submit" value="删除轮播表">
</form>

</body>
</html>